package com.fushenlan.commons;

/**
 * @author PC
 * @title: DataType
 * @projectName SpringBootDemo
 * @description: TODO
 * @date 2022/1/21 11:02
 */

public enum DataType implements KVDEnum {
    LOCK("LOCK", "lock", "锁"),
    CACHE("CACHE", "cache", "缓存");
    private String key;
    private String value;
    private String desc;

    private DataType(String key, String value, String desc) {
        this.desc = desc;
        this.key = key;
        this.value = value;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public void setDesc(String desc) {
        this.desc = desc;
    }
}
